package com.pa165.services;

import com.pa165.dao.EmployeeDAOLocal;
import com.pa165.entities.Employee;
import javax.ejb.EJB;
import javax.ejb.Local;
import javax.ejb.Stateless;


@Stateless
@Local(value = EmployeeServiceLocal.class)
public class EmployeeService implements EmployeeServiceLocal {

    
    @EJB
    private EmployeeDAOLocal employeeDao;

    @Override
    public void createEmployee(Employee employee) {

        employeeDao.create(employee);
    }

    @Override
    public void updateEmployee(Employee employee) {
        employeeDao.update(employee);
    }

    @Override
    public Employee findEmployee(Long id) {
       return employeeDao.find(id);
    }
    
}
